unsubscribe

open fun unsubscribe(observer: Observer, events: List<String>)

Unsubscribes an `observer` from a provided array of event types.

Parameters

events

An array of event types to be unsubscribed from.

observer

An `observer` that will be unsubscribed from a given events.

open fun unsubscribe(observer: Observer)

Unsubscribes an `observer` from all events.

Parameters

observer

An `observer` that will be unsubscribed from all previously subscribed events.